Skip to content

Comments

Add macOS .app bundle selection and launch support#9

Draft
Claude wants to merge 2 commits intomasterfrom
claude/add-macos-launch-support
Draft

Add macOS .app bundle selection and launch support#9
Claude wants to merge 2 commits intomasterfrom
claude/add-macos-launch-support

Conversation

@Claude
Copy link

@Claude Claude AI commented Feb 6, 2026

On macOS, users could not select .app bundles as the game install folder because the folder picker only accepted directories, and binary verification didn't check inside the bundle structure.

Changes

  • Folder selection dialog (electron/main.ts, electron/trpc/router.ts)

    • Added openFile property on macOS to allow selecting .app bundles (which appear as files but are directories)
  • Binary verification (electron/launch/binary-verifier.ts)

    • Checks Contents/MacOS/ inside .app bundles for executables when install folder ends with .app
    • Falls back to root-level check for Windows/Linux binaries
  • Game launcher (electron/launch/launcher.ts)

    • Added macOS platform support with correct working directory handling
    • Sets cwd to parent directory for .app bundles (not the .app itself)
    • BepInEx injection for macOS not implemented—vanilla launch only

Example

When selecting Game.app as install folder with exeNames: ["Game.app"]:

  • Verifier checks /path/to/Game.app/Contents/MacOS/Game
  • Launcher spawns with cwd: "/path/to" and exePath: "/path/to/Game.app/Contents/MacOS/Game"

Supports macOS games in ecosystem: CaL-ABP-macOS.app, LLBlaze.app, Hollow Knight Silksong.app

Original prompt

This section details on the original issue you should resolve

<issue_title>MacOS launch support</issue_title>
<issue_description>Currently on macOS, you cannot select the package contents for a macos native game. @claude Please help investigate on the root cause and propose a solution.</issue_description>

Comments on the Issue (you are @claude[agent] in this section)

@Claude Claude AI changed the title [WIP] Add macOS launch support for selecting package contents Add macOS .app bundle selection and launch support Feb 6, 2026
@Claude Claude AI requested a review from danielchim February 6, 2026 11:53
Claude AI and others added 2 commits February 7, 2026 15:08
- Update folder selection dialog to allow selecting .app bundles on macOS
- Update binary verifier to check inside .app/Contents/MacOS/ for executables
- Update launcher to support macOS platform with correct working directory
- Note: BepInEx injection for macOS not yet implemented (vanilla launch only)

Co-authored-by: danielchim <12156547+danielchim@users.noreply.github.com>
@danielchim danielchim force-pushed the claude/add-macos-launch-support branch from 2839272 to cece789 Compare February 7, 2026 07:08
@danielchim
Copy link
Owner

@AkaraChen please review the changes, if okay i will merge it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MacOS launch support

2 participants